//
//  ConstValues.h
//  WDFans
//
//  Created by Zhihong Yuan on 1/31/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#ifndef WDFans_ConstValues_h
#define WDFans_ConstValues_h

/*-------------------常用头文件-----------------*/
#import "WDUsers.h"
#define kMarginTop 1.f
#define kMarginLeft 3.f
#define kMarginRight 4.f
#define kMarginBottom 10.f
#define kCenterWidth 313.f
#define kCenterHeight 356.f

#define kFontKey @"font"
/**
    所有常量
*/
//背景图片
/*-------------------新闻 view的常量-----------------*/
#define kNameOfDefaultNewsImage @"defaultNews.png"
#define kNameOfNewsBackgroundImage @"bg-comments.png"
//get recent news with page
#define kUrlOfRecentNews @"http://wdfans.cn/mobile/latestNews.php?page=%d"

/*-------------------个人中心 view的常量-----------------*/
#define kDefaultUserImageName @"defaultUser.jpg"
#define kNameOfBgImage @"bg-personal-center.png"
#define kUrlOfGetLoginUserInfo @"http://www.wdfans.cn/mobile/login.php?username=%@&password=%@"
#define kUrlOfGetPersonalInfo @"http://www.wdfans.cn/mobile/getmessagelist.php?userid=%@&page=%d&isread=%d"
#define kUrlOfSetMessageRead @"http://www.wdfans.cn/mobile/setMessageStatus.php?userid=%@&messageid=%d"
#define kUrlOfRegisterUser @"http://www.wdfans.cn/mobile/register.php?regvar[username]=%@& regvar[password]=%@& regvar[email]=%@& regvar[province]=%@&regvar[city]=%@"

/*-------------------经销商 view的常量-----------------*/
#define kUrlOfGetAllProvincesInfo @"http://www.wdfans.cn/mobile/getAgencycatagory.php?stlng=%f&stlat=%f"
#define kUrlOfGetDealersInfo @"http://www.wdfans.cn/mobile/getUserDealer.php?stlng=%f&stlat=%f&provinceid=%d"


/*-------------------论坛 view的常量-----------------*/
#define kUrlOfGetSections @"http://www.wdfans.cn/mobile/forum.php?mod=index"
#define kUrlOfGetThemes @"http://www.wdfans.cn/mobile/forum.php?mod=forumdisplay&fid=%d&page=%d"
#define kUrlOfGetThemeDetails @"http://www.wdfans.cn/mobile/forum.php?mod=viewthread&tid=%d&page=%d"
#define kUrlOfSendReply @"http://www.wdfans.cn/mobile/forum.php?mod=post&action=reply&fid=%d&tid=%d&authcode=%@"
#define kUrlOfSendDeliver @"http://www.wdfans.cn/mobile/forum.php?mod=post&action=newthread&fid=%d&authcode=%@"


/*-------------------设置-关于 view的常量-----------------*/
//info按钮的连接
#define kUrlOfAboutUsPage @"http://www.wdfans.cn/portal.php"
//反馈的公司email地址
#define kEmailOfTheCompany @"emailtest@hotmail.com"
//西部数据账户的logo
#define kIconOfWestData @"icon.png"
//新浪微博账户的logo
#define kIconOfSinaWeibo @"weibo_32.png"
//默认的用户头像
#define kNameOfDefaultUserImage @"defaultUser.jpg"
#define kUrlOfChangeUserInfo @"http://www.wdfans.cn/mobile/usermodify.php?username=%@&oldpassword=%@&province=%@&email=%@&password=%@&city=%@"


/*-------------------sina微博的appkey与secret-----------------*/
//weibo appkey and secret
#ifndef SinaWeiBoSDKDemo_APPKey
#define SinaWeiBoSDKDemo_APPKey @"2396343608"
#endif

#if !defined(SinaWeiBoSDKDemo_APPSecret)
#define SinaWeiBoSDKDemo_APPSecret @"bb5bdc7df7609a13ffdf7201c32de2b0"
#endif

#endif
